Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(fe): use tanstack query for settings page #2308

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Kimhyojung0810
Copy link
Contributor

Description

리팩토링 목적: useEffect를 포함한 API 호출 로직을 Tanstack Query로 관리하기

Additional context

  • 브랜치를 옮겼습니다.
  • 비밀번호 수정 과정에서 새 비밀번호를 재입력 할 때 다음과 같은 에러가 발생합니다.

Failed to Load Main Page!

Too many re-renders. React limits the number of renders to prevent an infinite loop.


Before submitting the PR, please make sure you do the following

@coolify-skkuding
Copy link

coolify-skkuding bot commented Jan 16, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-01-20 16:20:34 CET

@Kimhyojung0810 Kimhyojung0810 marked this pull request as ready for review January 20, 2025 17:04
@eunnbi
Copy link
Contributor

eunnbi commented Feb 17, 2025

Preview에서 실행했을 땐 에러가 발생하지 않는데 재현 영상이 있을까요??

Comment on lines +59 to +61
if (!isLoading && defaultProfileValues.major) {
console.log('Setting majorValue:', defaultProfileValues.major)
setMajorValue(defaultProfileValues.major)
Copy link
Contributor

@eunnbi eunnbi Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!isLoading && defaultProfileValues.major) {
console.log('Setting majorValue:', defaultProfileValues.major)
setMajorValue(defaultProfileValues.major)
if (defaultProfileValues.major) {
setMajorValue(defaultProfileValues.major)

console.log 지워주세요!
isLoading 값을 사용할 필요는 없는 것 같아요!

updateNow: Boolean(updateNow),
isLoading
updateNow: Boolean(updateNow)
//isLoading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//isLoading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pending
Development

Successfully merging this pull request may close these issues.

2 participants